Delete Method (Folder Object) 

The Delete method deletes this Folder object from its parent Folders1TAZ6M collection or InfoStore14IU0EN object.

Syntax

objFolder.Delete()

Parameters

objFolder

Required. This Folder object.

 

Remarks

The action of the Delete method is permanent, and the Folder object cannot be recovered.

The ability to delete any object depends on the permissions granted to the user. The Delete method returns an error if called with insufficient permissions.

Example

Function Folder_Delete()

    ' error handling here

    If objFolder Is Nothing Then

        MsgBox "must select a valid Folder object"

        Exit Function

    End If

    objFolder.Delete ()

    Set objFolder = Nothing

    Exit Function

End Function